package cn.gson.springboot.model.dao.presaledao;

import cn.gson.springboot.model.pjos.BusinessInfo;
import org.springframework.data.jpa.repository.Modifying;
import org.springframework.data.jpa.repository.Query;
import org.springframework.data.repository.CrudRepository;
import org.springframework.transaction.annotation.Propagation;
import org.springframework.transaction.annotation.Transactional;

public interface BusinessInfoDao extends CrudRepository<BusinessInfo, Integer> {
//    商机合并
    @Transactional
    @Modifying
    @Query(value = "update business_info set custom_id = ?1 where custom_id = ?2",nativeQuery = true)
    public void upsCustomer(Integer daoId,Integer congId);
}
